﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace SCG.General
{
    public abstract class BaseMatrix
    {
        //public properties
        public int Width
        {
            get
            {
                return _width;
            }
        }
        public int Height
        {
            get
            {
                return _height;
            }
        }

        //in bounds?
        public bool InBounds(int x, int y)
        {
            if (x < 0 || x >= _width)
                return false;
            if (y < 0 || y >= _height)
                return false;
            return true;
        }

        protected int _width;
        protected int _height;
    }
}
